<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let arr = [1, 3, 9, 8, 5, 6];
        let sum = 0;
        arr.forEach(function (val, i, arr) {
            sum += val;
        })
        console.log(sum);
        let arr1 = arr.filter(function (val) {
            return val % 2 == 1;
        });
        console.log(arr1);
        let arr2 = arr.some(function (val) {
            return val > 8;
        });
        console.log(arr2);
    </script>
</body>

</html>